FROM centos:7
MAINTAINER "nancal"
RUN echo "Asia/Shanghai" > /etc/timezone && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && date && mkdir -p /app/lib

# curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash
ADD mariadb_repo_setup /opt/mariadb_repo_setup.sh
ADD server.cnf  /etc/my.cnf.d/server.cnf

RUN  yum install -y curl &&  bash /opt/mariadb_repo_setup.sh